/**
 * 
 */
package org.cuatrovientos.es;

import java.util.Scanner;

/**
 * @author beatriz_sola
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		String line ="";
		int option =0;
		
		Parking myParking = new Parking();
		
		
		myParking.showCar();
		
		Scanner reader = new Scanner(System.in);
		 do {
			 System.out.println("Menu");
			 System.out.println("1.Insert Car");
			 System.out.println("2.Output Car");
			 System.out.println("3.Show Car");
			 System.out.println("4.Exit");
			 
			 line = reader.nextLine();
			 
			option = Integer.parseInt(line);
			
			switch (option){
			case 1:
				System.out.println("Insert Car: ");
				System.out.println("Insert broach : ");
				String brench=reader.nextLine();
				System.out.println("Insert name");
				
				String name=reader.nextLine();
				Car zeroCar = new Car(name,brench);
				myParking.insertCar(zeroCar);
				break;
			case 2:
				
				System.out.println("Insert name");
				
				String name1=reader.nextLine();
				Car zeroCar1 = new Car(name1,"");
				myParking.outputCar(zeroCar1);
				break;
			case 3:
				myParking.showCar();
				break;
				
			
			}
			
		 }while(option!=4);
	}
}